import * as types from './mutation-types'

const mutations = {
	// 设置商家信息
	[types.SET_MERCHANT_INFO](state, merchantInfo) {
		state.merchantInfo = merchantInfo
	},
	// 设置二级分类
	[types.SET_SECOND_DIRECTORY](state, secondDirectory) {
		state.secondDirectory = secondDirectory
	},
	// 设置tab信息
	[types.SET_TAB_LIST](state, tabList) {
		state.tabList = tabList
	},
	// 设置tab选项
	[types.SET_TAB_CURRENT_INDEX](state, tabCurrentIndex) {
		state.tabCurrentIndex = tabCurrentIndex
	},
	
	// 设置商家信息配置
	[types.SET_MERINFO_CONFIG](state, merInfoConfig) {
		state.merInfoConfig = merInfoConfig
	}
	
}
export default mutations